package com.wobito.pojo.vo.config;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

/**
 * @Author Wangbaba
 * @Date 2024/8/19 10:58
 * @Version 1.0
 */
@Data
public class UpdateConfigTypeVO {

    @ApiModelProperty(value = "配置ID",required = true)
    private Long configId;

    @ApiModelProperty(value = "配置名称",required = true)
    @Size(min = 1,max = 8,message = "配置名称长度必须在1-8位之间")
    private String configName;

    @ApiModelProperty(value = "配置键值",required = true)
    @Size(min = 1,max = 40,message = "配置键值长度必须在1-40位之间")
    private String configValue;

    @ApiModelProperty(value = "配置类型",required = true)
    @Min(0)
    @Max(1)
    private Integer type;

    @ApiModelProperty(value = "备注")
    @Size(max = 200,message = "备注长度必须不得超过200")
    private String remark;
}
